﻿
@{
    ViewBag.Title = "ResultIndex";
    Layout = "~/Views/Shared/_TSZYLayout.cshtml";
}

<style>
    .green {
     background: #55ac1f;
    color: #fff;
    height: 46px;
    line-height: 46px;
    /* font-weight: bolder; */
    font-size: 20px;
    margin-top:10px;
    }
    .blue { background: #2a3575;
    color: #fff;
    height: 46px;
    line-height: 46px;
    /* font-weight: bolder; */
    font-size: 20px;
    }

     .blue1 { background: #2a3575;
    color: #fff;
   
     font-weight: bolder; 
    font-size: 16px;
    margin-top:10px;
    }
    .qrcode {
        margin:15px 0;
    }
    .green1 {
        color:#2a3575;
        margin-top:35px;
        font-size:16px;
    }
    .green2 { color:#2a3575;
        margin-top:10px;
          font-size:16px;
         
    }

    .mdi-circle {
        font-size:12px;
        margin-right:5px;
    }
    .lbr {
      margin-right:10px;
    }
</style>

<div class="text-center">
    @{ 
        if (ViewBag.Match != null && ViewBag.Match.Rows.Count > 0)
        {
            for (int i = 0; i < ViewBag.Match.Rows.Count; i++) {
                var dt = ViewBag.Match.Rows[i];
        <div class="green1"><label id="matchName">@dt["MatchName"]</label></div>
        <div class="green2"><i class="mdi mdi-circle"></i><label class="lbr">@dt["UserName"]</label><label>@dt["PhoneNumber"]</label></div>
        <div class="green2"><label>@dt["Grades"]</label></div>
                if (dt["IsFinal"] == "1")
                {
    <div class="green"><strong>祝贺您成功晋级 @dt["MatchName"] 总决赛</strong></div>
    <div class="qrcode">
        <img src="~/QrCode/@dt["QrCode"]" /></div>
        <div class="blue"> <strong>扫码即刻报名参加总决赛</strong> </div>
                }
                else
                {
                <div class="blue1"> <div> 很遗憾没有入 @dt["AreaName"]总决赛</div>
                <div>继续加油！我们明年见！</div> </div>
                }
    @*<img src="~/Content/images/QQ截图20200120102942.jpg" />*@

    @*<img src="~/Content/images/QQ截图20200120105004.jpg" />*@
                        }
                    }
                    else
                    {
            <div class="blue"><label>暂未查到相关数据</label></div>
        }
        }
</div>


